package com.pig4cloud.pig.village.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 土地资源
 * @author limbray.li
 * @date 2021/7/25
 */
@TableName("resource_land")
@Data
public class Land {
	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.ASSIGN_ID)
	private Long id;
	@JsonIgnore
	private LocalDateTime createTime;
	@JsonIgnore
	private LocalDateTime updateTime;
	@JsonIgnore
	private String createBy;
	@JsonIgnore
	private String updateBy;
	@JsonIgnore
	@TableLogic(value = "0",delval = "1")
	private String delFlag;
	@JsonIgnore
	private Integer tenantId;

	@ApiModelProperty(value = "组id")
	private Long teamId;

	@ApiModelProperty(value = "村民id")
	private Long villagerId;

	@ApiModelProperty(value = "粮食田")
	private BigDecimal landG;

	@ApiModelProperty(value = "经济田")
	private BigDecimal landE;
}
